<template>
  <section>
    <div>
      <el-button size="mini" type="primary" @click="savePage(item)"  v-if="item.state === 0">测试·保存</el-button>
      <el-button type="danger" size="mini" @click="delPage">删除</el-button>
      <el-button type="success" size="mini" @click="finishePage" style="float: right;margin-right: 0px"  v-if="item.state === 0">完成</el-button>
    </div>
    <div v-if="item.state === 1">
          <span style="color: red;font-weight: bold">
          报告项已创建完毕
          </span>
    </div>
  </section>
</template>

<script>
  import {mapGetters, mapActions, mapMutations} from 'vuex'
  import Vue from 'vue'//后续添加属性，需要vue联动
  import errHandler from '@/assets/errHandler.js'
  export default {
    name: "No11",
    props: ['currReport', 'item'],
    data() {
      return {
      }
    },
    created() {
      console.log(this.item)
    },
    mounted() {
    },
    computed: {
    },
    watch: {},
    methods: {
      ...mapActions({
        fetch: 'fetch'
      }),
      savePage(){
        this.$emit('save')
      },
      delPage(){
        this.$emit('del')
      },
      finishePage(){
        this.$emit('finish')
      }
    }
  }
</script>

<style scoped>

</style>
